# -*- coding: utf-8 -*-
import os,json
arr=os.listdir('zq/')
for fn in arr:
#    print fn
    t=fn[len(fn)-4:]
    if t!='.png' and t!='.jpg' and t!='.gif':
        os.remove('zq/'+fn)
        print '删除无效文件'+fn
